Rename init_IRQ to xen_init_IRQ, so that non-x86 can use their own init_IRQ.
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 18 May 2006 09:46:07 +0000 (10:46 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 18 May 2006 09:46:07 +0000 (10:46 +0100)
Signed-off-by Kevin Tian <Kevin.tian@intel.com>

linux-2.6-xen-sparse/drivers/xen/core/evtchn.c

index d51a9861080807f42ba3f433aafc2a2a5efd9ead..15fe014f33d27777556201c540ddb817f7820185 100644 (file)
 #include <asm/system.h>
 #include <asm/ptrace.h>
 #include <asm/synch_bitops.h>
+#include <xen/evtchn.h>
 #include <xen/interface/event_channel.h>
 #include <xen/interface/physdev.h>
 #include <asm/hypervisor.h>
-#include <xen/evtchn.h>
 #include <linux/mc146818rtc.h> /* RTC_IRQ */
 
 /*
@@ -163,6 +163,12 @@ static inline unsigned int cpu_from_evtchn(unsigned int evtchn)
 /* Upcall to generic IRQ layer. */
 #ifdef CONFIG_X86
 extern fastcall unsigned int do_IRQ(struct pt_regs *regs);
+void __init xen_init_IRQ(void);
+void __init init_IRQ(void)
+{
+       irq_ctx_init(0);
+       xen_init_IRQ();
+}
 #if defined (__i386__)
 static inline void exit_idle(void) {}
 #define IRQ_REG orig_eax
@@ -804,13 +810,11 @@ void irq_resume(void)
        }
 }
 
-void __init init_IRQ(void)
+void __init xen_init_IRQ(void)
 {
        int i;
        int cpu;
 
-       irq_ctx_init(0);
-
        spin_lock_init(&irq_mapping_update_lock);
 
        init_evtchn_cpu_bindings();